<div class="detailsBox">
	<div class="openBox detaiTab">
		<form action="/pay/saves" class="action-ajax-form"
			data-action-html="#action_load_body" method="post" id="entity">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td class="bg" align="right" width="15%">贷款单号:</td>
					<td width="35%">
					<@autocomplete url="/rgeneration/searchByBillCodecommon?code=" name="loanBillCode" value="${vo.loanBillCode}" hideIdName="loanApplyNo" hideIdValue="${vo.loanApplyNo}" action\-autocomplete\-callback\-function="fixname"/>(联想)
					</td>
					<td class="bg" align="right" width="15%">借款人:</td>
					<td><span name="loanUserName1" id="loanUserName1" ></span>
					<input name="loanUserName" id="loanUserName" type="hidden" value="${vo.loanUserName}" readonly="readonly" />
					</td>
				</tr>
				<tr >
					<td class="bg" align="right" width="15%">放款日期:</td>
					<td width="35%">
					<span name="loanTime1" id="loanTime1" ></span>
					<input name="loanTime" id="loanTime" class="tabInp" type="hidden" value="${vo.loanTime}" readonly="readonly" />
					</td>
					<td class="bg" align="right" width="15%">借款期限:</td>
					<td>
					<span name="loanTerm1" id="loanTerm1" ></span>
					<input name="loanTerm" id="loanTerm" class="tabInp" type="hidden" value="${vo.loanTerm}" readonly="readonly" />
					<input name="type" type="hidden" id="sas" value=""/>
					</td>
				</tr>
				<tr >
					<td class="bg" align="right" width="15%">到期日:</td>
					<td width="35%">
					<span name="settleDate1" id="settleDate1" ></span>
					<input name="settleDate" id="settleDate" class="tabInp" type="hidden" value="${vo.settleDate}" readonly="readonly" />
					</td>
      			    <td align="right" class="bg" width="15%">付款类型<span style="color: red;">*</span>：</td>
      				<td ><@select dataSouceType="FK_PAY_TTPE" name="payFkType" class="tabInp" value="${payEntity.payFkType}"  /> <span style="color: red;">实付需要资金部付款,虚付无需资金部付款</span> </td>
				</tr>
				<tr >
					<td colspan="4" style="text-align: center;">
							<input type="submit" value="保存" class="btn_auto_30 btn_blue" id="sv"/> &nbsp;&nbsp;&nbsp;&nbsp; 
							<input type="button" value="保存并提交" onclick="saveAndStart();" class="ajax btn_auto_30 btn_blue"> &nbsp;&nbsp;&nbsp;&nbsp; 
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
<script type="text/javascript">
	function fixname(data) {
		$("#loanUserName").val(data[3]);
		$("#loanUserName1").html(data[3]);
		$("#loanTime").val(data[4]);
		$("#loanTime1").html(data[4]);
		$("#loanTerm").val(data[5]);
		$("#loanTerm1").html(data[5]);
		$("#settleDate").val(data[6]);
		$("#settleDate1").html(data[6]);
		console.log(data);
		console.log(data[0]);
	}
	function saveAndStart(){
		$("#sas").val("SAS")
		$("#sv").click();
	}
</script>